/**
 * 
 */
package ads.engenharia.dal;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import ads.engenharia.entity.Professor;

/**
 * @author Lanedraex
 *
 */
public class ProfessorDAO {

	private EntityManager em = new EntityManager() {

		@Override
		public Object treatResultSet(ResultSet resultSet) throws SQLException {
			Professor professor = new Professor();

			return professor;
		}
	};

	/**
	 * Saves professor.
	 * @param professor
	 * @throws SQLException
	 */
	public void save(Professor professor) throws SQLException {

	}

	/**
	 * Deletes professor.
	 * @param professor
	 * @throws SQLException
	 */
	public void delete(Professor professor) throws SQLException {

	}

	/**
	 * Deletes all professors.
	 * @throws SQLException
	 */
	public void deleteAll() throws SQLException {

	}

	/**
	 * Updates professor.
	 * @param professor
	 * @throws SQLException
	 */
	public void update(Professor professor) throws SQLException {

	}

	/**
	 * Searches for professor.
	 * @param professor
	 * @return professor
	 * @throws SQLException
	 */
	public Professor search(Professor professor) throws SQLException {

		return null;
	}

	/**
	 * Searches all professors.
	 * @return List of professors.
	 * @throws SQLException
	 */
	public ArrayList<Professor> searchAll() throws SQLException {

		return null;
	}

	public Professor searchById(int id) throws SQLException {

		return null;
	}

	public ArrayList<Professor> searchByName(String name) throws SQLException {

		return null;
	}

	public ArrayList<Professor> searchByCompetence(Object competence)
			throws SQLException {

		return null;
	}

	public ArrayList<Professor> searchByStatus(boolean status)
			throws SQLException {

		return null;
	}

}
